package com.niiwoo.civet.trade.dto.request.loan;

import com.niiwoo.civet.trade.enums.ProjectTypeEnum;
import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Author: wuke
 * @Description:
 * @Date: Created in 14:51 2018/5/14
 */
@Data
public class LoanPreSubmitRecordSaveReqDTO implements Serializable {
    private static final long serialVersionUID = 8013524428034683554L;

    @NotNull(message = "用户ID不能为空")
    private String userId;

    @NotNull(message = "借款金额不能为空")
    @DecimalMin(value="0",message = "借款金额不能小于0")
    private BigDecimal loanAmount;

    @NotNull(message = "借款期限不能为空")
    private Integer deadline;

    @NotNull(message = "借款标题不能为空")
    private String loanTitle;

    @NotNull(message = "产品类型不能为空")
    //产品类型（8、小易借；9、社保借；10、信用卡借）
    private ProjectTypeEnum projectTypeEnum;
}
